<?php

use yii\db\Migration;

/**
 * Class m221201_130731_fill_extra_finance_source_table
 */
class m221201_130731_fill_extra_finance_source_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->batchInsert('{{%finance_source}}', ['name'], [
            ['Не задано'],
          ]
        );
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        echo "m221201_130731_fill_extra_finance_source_table cannot be reverted.\n";

        return false;
    }
}
